package com.simple.orm.mybatis;

import java.sql.Connection;
import java.util.Map;

/**
 * 功能描述: 我们这里把所有的数据都存放在map中，mybatis中会封装一个MappedStatement对象，来处理一部分数据
 *
 * @author: WuChengXing
 * @create: 2021-12-28 13:51
 **/
public class Configuration {
    /**
     * 连接信息
     */
    protected Connection connection;

    /**
     * 存放数据源信息
     */
    protected Map<String, String> dataSource;

    /**
     * 存放sql信息
     */
    protected Map<String, XNode> mapperElement;

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public void setDataSource(Map<String, String> dataSource) {
        this.dataSource = dataSource;
    }

    public void setMapperElement(Map<String, XNode> mapperElement) {
        this.mapperElement = mapperElement;
    }
}
